package java03.ui;
//类似C中的include

import java03.bll.Student;

// 继承结构代码
class MiddleStduent extends Student {
     public void f() {
//         super.sno="1001";
//         super.age = 22;
         super.gender="男";
         super.name = "刘德华";
     }
}

public class Test {
    public static void main(String[] args) {
        //将学生类Student实例化为一个对象(实例)
        Student xw = new Student();
//        xw.sno="1001";
//        xw.age = 22;
//        xw.gender="男";
        xw.name = "刘德华";

        try {
            xw.setAge(10000);
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
    }
}
